#include<stdio.h>
int i;
int main()
{
	int a[3][3] = { 1,2,3,4,5,6,7,8,9 };
	int* p = &a[0][0];
	int* p1 = &a[2][2];
	for (; p <= p1; p++)
	{

		printf("%d ", *p);
	}

	return 0;
}